from django.contrib.auth.models import AbstractUser
from django.db import models
# Create your models here.
class User(AbstractUser):
    # 添加额外的类属性
    mobile = models.CharField("手机号",max_length=11)

    def __str__(self):
        return self.username

    class Meta:
        db_table ='user_tb'
        verbose_name ="用户表"
        verbose_name_plural = verbose_name
